home *** CD-ROM | disk | FTP | other *** search
- package swings
- {
- import flash.display.*;
- import flash.events.*;
- import flash.net.*;
-
- public class HelpScript extends MovieClip
- {
-
-
- public var nextButton:SimpleButton;
-
- public var frame:String;
-
- public var animation:MovieClip;
-
- public var sharer:MovieClip;
-
- public var logo:MainLogo;
-
- public function HelpScript()
- {
- frame = SwingsGame(parent).currentLabel;
- super();
- if(SwingsGame(parent).pastDate)
- {
- logo.gotoAndStop(2);
- }
- else
- {
- logo.gotoAndStop(1);
- }
- nextButton.addEventListener(MouseEvent.MOUSE_DOWN,startGame);
- sharer.helpBtn.visible = false;
- sharer.shareBtn.addEventListener(MouseEvent.MOUSE_DOWN,gotoShare);
- SwingsGame(parent).returnTo = "help1";
- }
-
- private function gotoShare(param1:MouseEvent) : *
- {
- sharer.shareBtn.removeEventListener(MouseEvent.MOUSE_DOWN,gotoShare);
- nextButton.removeEventListener(MouseEvent.MOUSE_DOWN,startGame);
- SwingsGame(parent).fade("share");
- }
-
- public function startGame(param1:MouseEvent) : *
- {
- var _loc2_:* = undefined;
- nextButton.removeEventListener(MouseEvent.MOUSE_DOWN,startGame);
- sharer.shareBtn.removeEventListener(MouseEvent.MOUSE_DOWN,gotoShare);
- SwingsGame(parent).fade("help2");
- _loc2_ = SwingsGame(parent).returnTo == "help2";
- }
- }
- }
-